<?php
$this->breadcrumbs=array(
	'Advertisements'=>array('admin'),
	$model->number,
);

$this->menu=array(array('label'=>'Management', 'url'=>array('admin')));
if (Yii::app()->user->name=='admin') {
	$this->menu[]=array('label'=>'Create', 'url'=>array('create'));
	$this->menu[]=array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id));
	$this->menu[]=array('label'=>'Delete', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?'));
}
?>

<h1>View Advertisement #<?php echo $model->number; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'number',
		array(
			'label'=>'Type',
			'value'=>$model->type->name,
		),
		'size',
		'title',
		'content',
		'startTime',
		'endTime',
		'client',
		'clientPhone',
		'clientEmail',
		'clientAddress',
		'price',
		'paymentType',
		'paymentDate',
		'memo',
	),
)); ?>
